package com.wxb.service.impl;

import com.wxb.domain.MallTopicEntity;
import com.wxb.mapper.MallTopicMapper;
import com.wxb.service.IMallTopicService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Date 2025-05-27 14:52
 * @Version 1.0
 * @Description
 * @ClassName MallTopicServiceImpl
 **/
@Service
public class MallTopicServiceImpl implements IMallTopicService {
    @Resource
    private MallTopicMapper topicDao;

    @Override
    public MallTopicEntity queryObject(Integer id) {
        return topicDao.queryObject(id);
    }

    @Override
    public List<MallTopicEntity> queryList(MallTopicEntity topic) {
        return topicDao.queryList(topic);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return topicDao.queryTotal(map);
    }

    @Override
    public void save(MallTopicEntity topic) {
        topicDao.save(topic);
    }

    @Override
    public void update(MallTopicEntity topic) {
        topicDao.update(topic);
    }

    @Override
    public void delete(Integer id) {
        topicDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids) {
        topicDao.deleteBatch(ids);
    }
}
